package com.hisysteTopet.hisystepet.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hisysteTopet.hisystepet.bean.IndentPetLifeGoods;
import com.hisysteTopet.hisystepet.mapper.IndentToPetLifeGoodsMapper;
import com.hisysteTopet.hisystepet.service.IndentToPetLifeGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


@Service
public class IndentToPetLifeGoodsServiceImpl extends ServiceImpl<IndentToPetLifeGoodsMapper,IndentPetLifeGoods> implements IndentToPetLifeGoodsService{

    @Autowired
    IndentToPetLifeGoodsMapper indentToPetLifeGoodsMapper;

    @Override
    public List<IndentPetLifeGoods> selectAllIndentByUsername(String username) {
        return indentToPetLifeGoodsMapper.selectAllIndentByUsername(username);
    }

    @Override
    public void insertIntend(Double sum_money, Date data, String address,
                             String username, Integer priceId, Integer priceNum,String priceName) {
        indentToPetLifeGoodsMapper.insertIntend(sum_money,data,address,username,priceId,priceNum,priceName);
    }

}
